<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="./css/reset.css">
    <link rel="stylesheet" href="./css/login.css">
    <script src="./js/jquery-1.12.3.min.js"></script>
    <script src="./js/axios.js"></script>
    <script src="./js/layer/layer.js"></script>
</head>

<body>
    <div id="header">
        <div class="header-wrap">
            <img src="./images/logo1.jpg" alt="">
            <div class="fr_login">
                您好，欢迎光临购酒网!
                <a href="#" class="logina1"><i>在线客服</i></a>
                <a href="#" class="logina2"><i></i>帮助</a>
            </div>
        </div>
    </div>
    <div id="content">
        <div class="content-wrap">
            <a href="./index.html"><img src="./images/login_form.jpg" alt=""></a>
            <div class="login_inner">
                <form action="">
                    <div class="login_tit">
                        <i></i>购酒网会员登录
                    </div>
                    <div class="zhanghao">
                        <i></i>
                        <input type="text" id="uname" name="uname" placeholder="邮箱/手机号码">
                    </div>
                    <div class="mima">
                        <i></i>
                        <input type="password" id="uname" name="upwd">
                    </div>
                    <div class="autoLogin">
                        <div class="fl">
                            <input type="checkbox" id="cbx">自动登录
                        </div>
                        <a href="#">忘记密码</a>
                    </div>
                    <button class="btnSubmit" id="btnSubmit">登 录</button>
                </form>
                <div class="dashedLine"></div>
                <div class="other_login">
                    使用合作账号登录
                    <div class="otherbox">
                        <a href="#" class="otherboxa1"></a>
                        <a href="#" class="otherboxa2"></a>
                        <a href="#" class="otherboxa3"></a>
                    </div>
                </div>
                <a href="./register.html" class="resg">注册新账号</a>
            </div>
        </div>
    </div>
    <div id="footer">
        <div class="links">
            <li><a href="#">关于我们</a></li>
            <li><a href="#">关于我们</a></li>
            <li><a href="#">关于我们</a></li>
            <li><a href="#">关于我们</a></li>
        </div>
        <div class="banquan">
            Copyright©2009-2020 gjw.com, All Rights Reserved 购酒网(上海)供应链管理有限公司 版权所有
        </div>
    </div>
</body>
</html>
<script src="./js/login.js"></script>
<script>
    // $(function () {

    //     //1.使用 axios

    //     axios.defaults.baseUrl = "http://127.0.0.1:8080";
    //     $("form").submit(function () {
    //         var data = $(this).serialize();
    //         axios({
    //             url: "/api/login",
    //             method: "post",
    //             data: data
    //         }).then(function (res) {
    //             console.log(res)
    //             console.log(res.data.token)
    //             layer.alert(res.data.msg);
    //             location.href="./index.html";
    //             if (res.data.status) {
    //                 localStorage.setItem("token", res.data.token);
    //                 localStorage.setItem("user", JSON.stringify(res.data.data));
    //             }
    //         })

    //         return false;
    //     })
    // })
</script>